import request from '@/utils/request'

// 查询projects列表
export function listProject(query) {
  return request({
    url: '/user/project/list',
    method: 'get',
    params: query
  })
}

// 查询projects详细
export function getProjectById(projectId) {
  return request({
    url: '/user/project/' + projectId,
    method: 'get'
  })
}

// 查询projects详细
export function createProject(project) {
  return request({
    url: '/user/project/createProject',
    method: 'post',
    data: project
  })
}
// 修改项目
export function updateProject(data) {
  return request({
    url: '/user/project',
    method: 'put',
    data: data
  })
}
